<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {include file='common/header'}
</head>
<body>
<h1>温度曲线项目</h1>
<hr>
<h1>添加数据页面</h1>
<div class="col-sm-12">
    <div class="ibox-content">
        <div class="col-sm-3 col-lg-offset-4 m-b-xs">
            <h1>添加新纸种</h1>
            <form class="form-horizontal m-t" action="temp/index/dd" method="post"  id="commentForm">
                <div class="form-group">
                    <label class="col-sm-3 control-label">纸种：</label>
                    <div class="col-sm-8">
                        <input id="cname"  type="text" class="form-control" name="paper" required="" aria-required="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">定量：</label>
                    <div class="col-sm-8">
                        <input id="weight" type="text" class="form-control" name="weight" required="" aria-required="true">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12 col-sm-offset-3">
                        <button id="btn" class="btn btn-primary" type="submit">添加</button>
                        <a href="TempIndex.html">去查询</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</div>


<script type="text/javascript" src="/static/ui/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/ui/lib/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="/static/ui/lib/layer/3.1/layer.js"></script>
<script type="text/javascript" src="/static/ui/js/H-ui.js"></script>

<script>
    $('#send').click(function () {
        $.post('{:url("admin/Sign/faSong")}', function (e) {
            console.log(e);
            if (e.code){
                $('#send').html('<span id="second">60</span>秒后重新发送');
                timer = setInterval(f,1000);
                $('#send').attr('disabled','disabled');
                // layer.alert(e.info);
            }else {
                alert(e.info)
            }
        })
    });

    // $('#btn').click(function () {
    //
    //     $.post('{:url("temp/index/add")}',function (e) {
    //         console.log(e.info);
    //     })
    // })


</script>

</body>
</html>